﻿@using QqhrCitizen.Models.ViewModel;
@{
    vNews news = ViewBag.News as vNews;
    ViewBag.Title = "新闻详细_齐齐哈尔市民学习网";
    ViewBag.Search = "新闻、标签";
}
<script src="~/Scripts/stickUp.js"></script>
<script>
    $("#topmenu_news").attr("class", "item_selected");
</script>
<div id="d_menu" class="d-menu menu-eve">
    <div id="d_menu_c" class="d-menu-c">
        <!-- region start: menu -->
        <div id="d_headmenu" class="d-headmenu">
            <div class="body">
                <a id="headmenu_default" class="item_selected" href="/News/Index" style="cursor:pointer" target="_parent">新闻首页</a>
                <a id="headmenu_discovery" class="item" href="/News/Discovery/0">发现新闻</a>
            </div>
        </div><!-- region end: menu -->
    </div>
</div>
<div id="d_bottom" class="d-bottom" style="visibility: hidden; position: fixed;"><div class="d-bottom-c"><div id="d_scrolltop" class="d-scrolltop" style="right: -70px;"><span class="t" onclick="$('html,body').animate({scrollTop: '0px'}, 800);">顶部</span></div></div></div>
<div class="d-row" style="padding: 0 0 40px 0">
    <div class="d-row-c">
        <div class="d-col-2-8">
            <div class="contentarea">
                <!-- region start: 新闻文章 -->
                <input type="hidden" id="hiddenID" name="hiddenID" value="1203">
                <input type="hidden" id="hiddenIsPreview" name="hiddenID" value="[#hiddenIsPreviewID]">
                <div id="d_article" class="d-article">
                    <div class="body">
                        <div class="item">
                            <div class="title">@news.Title</div>
                            <div class="info">
                                <span class="date">发布时间:@news.Time</span>
                                <span class="from"></span>
                                <span class="view">浏览次数:<span id="viewCountNum">@news.Browses</span></span>
                            </div>
                            <div class="desc txt-justify">
                                @Html.Sanitized(@news.Content)
                            </div>
                        </div>
                    </div>
                </div> 

                <hr style="border: none; height: 1px; background-color: #ccc; margin: 20px 25px 0 0;">
                <div class="d-coursecomment">
                    <div class="head">评论</div>
                    <!-- 多说评论框 start -->
                    <div class="ds-thread" data-thread-key="@news.NewsTypeID+@news.ID" data-title="@news.Title" data-url="@HttpContext.Current.Request.Url.ToString()"></div>
                    <!-- 多说评论框 end -->
                    <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
                    <script type="text/javascript">
                        var duoshuoQuery = { short_name: "qqhrcitizen" };
                        (function () {
                            var ds = document.createElement('script');
                            ds.type = 'text/javascript'; ds.async = true;
                            ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
                            ds.charset = 'UTF-8';
                            (document.getElementsByTagName('head')[0]
                                || document.getElementsByTagName('body')[0]).appendChild(ds);
                        })();
                    </script>
                    <!-- 多说公共JS代码 end -->
                </div>
            </div>


        </div>
        <div class="d-col-2-4">
            <div class="contentarea">    
                <!-- region start: 推荐新闻 -->
                <div id="d_articlehot" class="d-articlehot navbar-wrapper">
                    <div class="head">相关新闻</div>
                    <div class="body">
                        @foreach (var item in ViewBag.LstNews as List<News>)
                        {
                            <a class="item trim" href="/News/Show/@item.ID" target="_blank" title="@item.Title">@item.Title</a>
                        }
                    </div>
                </div>
                <!-- region end: 推荐新闻 -->
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>
<script type="text/javascript">
    //initiating jQuery
    jQuery(function ($) {
        $(document).ready(function () {
            //enabling stickUp on the '.navbar-wrapper' class
            $('.navbar-wrapper').stickUp();
        });
    });

</script>
